package exceptions;

import game.Match;
import game.Player;
import game.PlayerMove;

public class InvalidMoveException extends RuntimeException {

	public InvalidMoveException(Player player, Match match, PlayerMove move) {
		super(String.format("Invalid move (%s) performed by %s at match %d", 
				move, player, match.getId()));
		
		this.player = player;
		this.match = match;
		this.move = move;
	}

	private Player player;			// The player who tried the move
	private Match match;			// The match where the move ocurred.	
	private PlayerMove move;		// The invalid move
	
	private static final long serialVersionUID = 1L;
}
